/*--------------------------------------------------------------------------------------------------
Yatak Operation System Project Copyright 2012
Author : Ilya Churaev
Started : 25 Apr 2012		Updated : 25 Apr 2012
File Name : cmos.h			Purpose : get information from cmos
--------------------------------------------------------------------------------------------------*/

#ifndef _YATAK_CMOS_H
#define _YATAK_CMOS_H

#ifdef __cplusplus
extern "C" {
#endif

#include "types.h"

#define CMOS_OUT_PORT 0x70
#define CMOS_IN_PORT 0x71

#define SECOND 0x00
#define MINUTE 0x02
#define HOUR 0x04
#define DAY 0x06
#define DATE 0x07
#define MONTH 0x08
#define YEAR 0x09
#define STATUS_A 0x0A
#define STATUS_B 0x0B
#define STATUS_C 0x0C
#define STATUS_D 0x0D

#define CURRENT_YEAR			2013			// Change this each year!

int cmos_read(byte);
bool cmos_busy();
int bcd2bin(byte);
void detect_floppy_drives();

#ifdef __cplusplus
}
#endif

#endif

